package com.uh.app.service;

import com.uh.microservice.core.dao.JdbcDao;
import com.uh.microservice.core.util.JWTUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.HashMap;
import java.util.Map;

@Service
public class UserService {
    @Autowired
    private JdbcDao dao;

    @Transactional
    public Map doLogin(String uname, String pwd){
        String token = JWTUtils.createToken("abee12222223");
        Map online=new HashMap();
        online.put("token",token);
        return online;
    }
}
